import request from '@/utils/request';
// 地图统计
export function mapdata(data) {
  return request({
    url: '/modules/admin-index/mapdata',
    method: 'get',
    data
  });
}
// 统计流量数据
export function getFlowCounts(data) {
  return request({
    url: '/modules/admin-index/getFlowCounts',
    method: 'post',
    data
  });
}
// 统计注册人数、在线人数、认证用户数，会员用户********所有******
export function getUserCounts(data) {
  return request({
    url: '/modules/admin-index/getUserCounts',
    method: 'post',
    data
  });
}
// 统计会员收益（订单成功金额）、总订单金额，退款金额 以及订单成功率**********所有*******
// 成功流水数量、流水总数量、失败流水数量一级流水成功率
export function getAmountAndFlowCount(data) {
  return request({
    url: '/modules/admin-index/getAmountAndFlowCount',
    method: 'post',
    data
  });
}
// 统计今日注册人数、
export function getTodayUserCount(data) {
  return request({
    url: '/modules/admin-index/getTodayUserCount',
    method: 'post',
    data
  });
}
// 统计今日会员收益
export function getTodayCounts(data) {
  return request({
    url: '/modules/admin-index/getTodayCounts',
    method: 'post',
    data
  });
}
// 设备注册量(所有)
export function getDeviceCount(data) {
  return request({
    url: '/modules/admin-index/getDeviceCount',
    method: 'post',
    data
  });
}
// 今日-设备注册量
export function getTodayDeviceCount(data) {
  return request({
    url: '/modules/admin-index/getTodayDeviceCount',
    method: 'post',
    data
  });
}
// 看板1
export function getUserPeriodDayStatistics(data) {
  return request({
    url: '/modules/admin-index1/getUserPeriodDayStatistics',
    method: 'post',
    data
  });
}
// 近七天
export function getUserDataStatistics(data) {
  return request({
    url: '/modules/admin-index1/getUserDataStatistics',
    method: 'post',
    data
  });
}
// 近24小时
export function getUserTwentyFourHoursData(data) {
  return request({
    url: '/modules/admin-index1/getUserTwentyFourHoursData',
    method: 'post',
    data
  });
}
// 近七天助贷
export function getLoanAidStatistics(data) {
  return request({
    url: '/modules/admin-index1/getLoanAidStatistics',
    method: 'post',
    data
  });
}
// 用户区域统计
export function getRegionQuery(data) {
  return request({
    url: '/modules/admin-index1/getRegionQuery',
    method: 'get'
  });
}
// 用户区域总数
export function getPostRegionalSummary(data) {
  return request({
    url: '/modules/admin-index1/getRegionalSummary',
    method: 'post'
  });
}

// ROI
export function getRoi(data) {
  return request({
    url: '/board/roi',
    method: 'get',
    params: data
  });
}
// 线索来源趋势
export function zdClueTrend(data) {
  return request({
    url: '/board/zdClueTrend',
    method: 'get',
    params: data
  });
}
// 渠道监测
export function channelDetect(data) {
  return request({
    url: '/board/channelDetect',
    method: 'get',
    params: data
  });
}
// 今日机构情况
export function agencySituation(data) {
  return request({
    url: '/board/agencySituation',
    method: 'get',
    params: data
  });
}
// 在线机构占比
export function agencyInfo(data) {
  return request({
    url: '/board/agencyInfo',
    method: 'get',
    params: data
  });
}
// 今日API情况
export function apiSituation(data) {
  return request({
    url: '/board/apiSituation',
    method: 'get',
    params: data
  });
}
// APItop情况
export function apiTop(data) {
  return request({
    url: '/board/apiTop',
    method: 'get',
    params: data
  });
}
// api渠道成功率
export function apiChannel(data) {
  return request({
    url: '/board/apiChannel',
    method: 'get',
    params: data
  });
}
// 城市Top
export function cityTop(data) {
  return request({
    url: '/board/cityTop',
    method: 'get',
    params: data
  });
}
// 芝麻分
export function byNewSesame(data) {
  return request({
    url: '/board/byNewSesame',
    method: 'get',
    params: data
  });
}
// 车
export function byCar(data) {
  return request({
    url: '/board/byCar',
    method: 'get',
    params: data
  });
}
// 房
export function byHouse(data) {
  return request({
    url: '/board/byHouse',
    method: 'get',
    params: data
  });
}
// 公积金
export function byAccumulation(data) {
  return request({
    url: '/board/byAccumulation',
    method: 'get',
    params: data
  });
}
